//------------------------------------------------
//		main.c
//	UART Example
//	Arthur Benemann 28/03/2012
//------------------------------------------------
//	Description:
//  UART library example, sends some strings on power-up.
//  Then puts the serial por in a loopback mode
//------------------------------------------------

#include "picDev.h"   // Hardware Definitions
#include "UART/UART2.h" // UART library

//-------------------- Main -----------------------
int main() {
    initU2();   // Initialize the Uart module

    lineU2();                       // Sends's a new line before anything
    putsU2("UART example.\r\n");    // Send's some welcome string.
    putsU2("Date: "__DATE__"\r\n"); // Send's the Date of compilation
    putsU2("Time: "__TIME__"\r\n"); // Send's the Time of compilation
    putsU2("Running the loop. Just type anything:\r\n");

    // Main Loop
    while (1) {
        putU2(getU2()); // Loopback
    };
}



